home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CBaseStorageMesh_1
- {
- string MeshFile = "Models/B_Base_1.mesh";
- string SkinFile = "Models/B_Base_1.skin";
- }
-
- class CBaseStorageMesh_2
- {
- string MeshFile = "Models/B_Base_2.mesh";
- string SkinFile = "Models/B_Base_2.skin";
- }
-
- class CBaseStorageStateControl extends CUnitLifeControl
- {
- void CBaseStorageStateControl()
- {
- CUnitLifeControl(3500.0);
- m_DestroyPause = 20.0;
- m_ExplosionId = "EXPLID_BuildingExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseBaseStorage extends CBuilding, CUnitWithStateControl
- {
- array m_MeshClassNames = array(
- "CBaseStorageMesh_1",
- "CBaseStorageMesh_2"
- );
-
- void CBaseBaseStorage()
- {
- int MeshNumber = rand_int(m_MeshClassNames.size());
- InitializeModelAsStatic(m_MeshClassNames[MeshNumber]);
- CUnitWithStateControl("CBaseStorageStateControl");
- }
- }
-
- // Single game object
- class CMountedBaseStorage extends CBaseBaseStorage
- {
- void CMountedBaseStorage()
- {
- InitializeGroundControl();
- }
- }
-
-
-
-